<%@page import="java.sql.Connection"%>
<%@page import="org.blackjuly.sign.data.SystemDataSource"%>
<%@page import="org.blackjuly.sign.entity.Grade"%>
<%@page import="org.blackjuly.sign.service.GradeService"%>
<%@page language="java" pageEncoding="utf-8"%>
<%@include file="auth.jsp"%>
<%
GradeService gradeService = new GradeService();
Connection conn = SystemDataSource.getInstance().getConnection();
gradeService.setConnection(conn);
Grade grade = gradeService.findGradeByStudent(userSession.getStudent(),"student");
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>查看成绩</title>
<style type="text/css">
<!--
.STYLE1 {font-size: 14px}
-->
table tr td {
	font-size: 18px;
}
</style>
</head>
<body>
<center>
<table width=720 border=”1″ cellpadding=10 cellspacing=”0″ bordercolor=”#009900″>
<tr>
<td width="60" rowspan="5"><%=grade.getStudent()%></td>
<td width="60">科目</td>
<td width="60">语文</td>
<td width="60">数学</td>
<td width="60">英语</td>
<td width="60">历史</td>
<td width="60">政治</td>
<td width="60">物理</td>
<td width="60">化学</td>
</tr>
<tr>
<td>分数</td>
<td><%=grade.getChinese()%></td>
<td><%=grade.getMath()%></td>
<td><%=grade.getEnglish()%></td>
<td><%=grade.getHistory()%></td>
<td><%=grade.getPolitics()%></td>
<td><%=grade.getPhysics()%></td>
<td><%=grade.getChemistry()%></td>

</tr>
<tr>
<td>等级</td>
<td><%=grade.getGrade1()%></td>
<td><%=grade.getGrade2()%></td>
<td><%=grade.getGrade3()%></td>
<td><%=grade.getGrade4()%></td>
<td><%=grade.getGrade5()%></td>
<td><%=grade.getGrade6()%></td>
<td><%=grade.getGrade7()%></td>
</tr>

<tr>
<td rowspan=”2″>总分</td>
	<td rowspan=”2″>A数</td>
	<td rowspan=”2″>排名</td>
	<td>进步</td>
	<td><p>金额</p></td>
	<td><p>次数</p></td>
	<td>操行分</td>
	<td>&nbsp;</td>
</tr>
<tr>
	<td><%=grade.getAll()%></td>
	<td><%=grade.getA()%></td>
    <td><%=grade.getReaking()%></td>
  	<td><%=grade.getContrast()%></td>
	<td><%=grade.getPay()%></td>
	<td><%=grade.getTimes()%></td>
	<td><%=grade.getScore()%></td>
  <td>&nbsp;</td>
</tr>
</table>
</center>
</body>
</html>